package com.adingxiong.cft.util;

import org.apache.commons.lang3.StringUtils;

import java.util.UUID;

/**
 * @ClassName CodeUtils
 * @Description   编码生成
 * @Author xiongchao
 * @Date 2020/6/18 10:30
 **/
public class CodeUtils {


    public static String getUUID(){
        String uid = UUID.randomUUID().toString().replace("-","");
        return uid;
    }


    public static String sNum (String type){
        if(StringUtils.isNotBlank(type)){
            type.toUpperCase();
        }else{
            type="UID";
        }
        return type + "-" + System.currentTimeMillis();
    }

}
